package com.fast.develop.dm.plugin.table.exporter;

import com.fast.develop.dm.core.listener.ModuleListener;
import com.fast.develop.dm.core.plugin.Plugin;
import com.fast.develop.dm.core.plugin.PluginRegister;
import com.fast.develop.dm.plugin.table.exporter.listener.ContextStartedListener;

import java.util.Arrays;
import java.util.List;

/**
 * @author 莫寅
 * @createTime 2022-06-09 13:27
 * @desc：
 */
public class PluginTableExporterRegister implements PluginRegister {

    private ContextStartedListener contextStartedListener;

    public PluginTableExporterRegister() {
        this.contextStartedListener = new ContextStartedListener();
    }

    @Override
    public Plugin plugin() {
        return new Plugin("table_exporter", "表导出插件");
    }

    @Override
    public List<ModuleListener> getListeners() {
        return Arrays.asList(
                contextStartedListener
        );
    }

    public ContextStartedListener getContextStartedListener() {
        return contextStartedListener;
    }
}
